package untils;

import java.util.List;

/**
 * 分页工具类
 * @param <T>
 */
public class ResultPage<T> {
    private List<T> lists ;  //每页展示的信息列表
    private int currentPage; //当前页
    private int totalCount; // 总条数
    private int totalPage; // 总页数

    public List<T> getLists() {
        return lists;
    }

    public void setLists(List<T> lists) {
        this.lists = lists;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(int totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPage() {
        return totalPage;
    }

    public void setTotalPage(int totalPage) {
        this.totalPage = totalPage;
    }
}
